package com.hu.zhcc.shiro.entity.tj;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 会员病史表
 * </p>
 *
 * @author tj
 * @since 2021-06-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TMemberMedicalhistory extends Model<TMemberMedicalhistory> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 会员编号
     */
    private Integer tMemberId;
    /**
     * 既往史
     */
    private byte[] previousHistory;
    /**
     * 家族史
     */
    private byte[] familyHistory;
    /**
     * 过敏史
     */
    private byte[] allergicHistory;
    /**
     * 病史
     */
    private byte[] medicalHistory;
    /**
     * 慢性病
     */
    private byte[] chronicDisease;
    /**
     * 创建时间
     */
    private Date createtime;
    /**
     * 修改时间
     */
    private Date updatetime;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer gettMemberId() {
        return tMemberId;
    }

    public void settMemberId(Integer tMemberId) {
        this.tMemberId = tMemberId;
    }

    public byte[] getPreviousHistory() {
        return previousHistory;
    }

    public void setPreviousHistory(byte[] previousHistory) {
        this.previousHistory = previousHistory;
    }

    public byte[] getFamilyHistory() {
        return familyHistory;
    }

    public void setFamilyHistory(byte[] familyHistory) {
        this.familyHistory = familyHistory;
    }

    public byte[] getAllergicHistory() {
        return allergicHistory;
    }

    public void setAllergicHistory(byte[] allergicHistory) {
        this.allergicHistory = allergicHistory;
    }

    public byte[] getMedicalHistory() {
        return medicalHistory;
    }

    public void setMedicalHistory(byte[] medicalHistory) {
        this.medicalHistory = medicalHistory;
    }

    public byte[] getChronicDisease() {
        return chronicDisease;
    }

    public void setChronicDisease(byte[] chronicDisease) {
        this.chronicDisease = chronicDisease;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
